load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "pebble",
    srcs = [
        "batch.go",
        "cache.go",
        "checkpoint.go",
        "cleaner.go",
        "commit.go",
        "compaction.go",
        "compaction_iter.go",
        "compaction_picker.go",
        "comparer.go",
        "db.go",
        "error_iter.go",
        "event.go",
        "filenames.go",
        "flush_external.go",
        "flushable.go",
        "get_iter.go",
        "ingest.go",
        "internal.go",
        "iterator.go",
        "level_checker.go",
        "level_iter.go",
        "log_recycler.go",
        "logger.go",
        "mem_table.go",
        "merger.go",
        "merging_iter.go",
        "merging_iter_heap.go",
        "metrics.go",
        "open.go",
        "options.go",
        "pacer.go",
        "read_state.go",
        "snapshot.go",
        "syncing_fs.go",
        "table_cache.go",
        "table_stats.go",
        "version_set.go",
    ],
    importmap = "github.com/cockroachdb/cockroach/vendor/github.com/cockroachdb/pebble",
    importpath = "github.com/cockroachdb/pebble",
    visibility = ["//visibility:public"],
    deps = [
        "//vendor/github.com/cockroachdb/errors",
        "//vendor/github.com/cockroachdb/errors/oserror",
        "//vendor/github.com/cockroachdb/pebble/internal/arenaskl",
        "//vendor/github.com/cockroachdb/pebble/internal/base",
        "//vendor/github.com/cockroachdb/pebble/internal/batchskl",
        "//vendor/github.com/cockroachdb/pebble/internal/bytealloc",
        "//vendor/github.com/cockroachdb/pebble/internal/cache",
        "//vendor/github.com/cockroachdb/pebble/internal/humanize",
        "//vendor/github.com/cockroachdb/pebble/internal/invariants",
        "//vendor/github.com/cockroachdb/pebble/internal/manifest",
        "//vendor/github.com/cockroachdb/pebble/internal/manual",
        "//vendor/github.com/cockroachdb/pebble/internal/private",
        "//vendor/github.com/cockroachdb/pebble/internal/randvar",
        "//vendor/github.com/cockroachdb/pebble/internal/rangedel",
        "//vendor/github.com/cockroachdb/pebble/internal/rate",
        "//vendor/github.com/cockroachdb/pebble/internal/rawalloc",
        "//vendor/github.com/cockroachdb/pebble/internal/record",
        "//vendor/github.com/cockroachdb/pebble/sstable",
        "//vendor/github.com/cockroachdb/pebble/vfs",
        "//vendor/github.com/cockroachdb/redact",
        "//vendor/golang.org/x/exp/rand",
    ],
)
